"use strict";
var str = 'hello';
var num = 123;
// num = 'hello'
//类型推断
var isLogin = true;
//联合类型
var params = '11';
params = 1;
var test = undefined;
test = true;
//定义数组
var arr = ['lili', '1', 'lisi'];
var arr1 = ['s', '1'];
// let arr2:any[] = ['a',true,1]
//元组  是一种特殊的数组
var tub1 = ['a', true, 1];
//枚举 枚举名：首字母必须大写
var Sex;
(function (Sex) {
    Sex[Sex["girl"] = 0] = "girl";
    Sex[Sex["boy"] = 1] = "boy";
    Sex[Sex["unkown"] = 2] = "unkown";
})(Sex || (Sex = {}));
console.log(Sex.girl);
function fun() {
}
